Part Number Hot Search : 
69010 DGBRR D500D NJD2873 N30205M PBY302 1N4712C AM1010
Product Description
Full Text Search
 

To Download 805-00012 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  web site: www.parallax.com forums: forums.parallax.com sales: sales@parallax.com technical: support@parallax.com office: (916) 624-8333 fax: (916) 624-8003 sales: (888) 512-1024 tech support: (888) 997-8267 copyright ? parallax inc. parallax serial lcds (#27976, 27977, 27979) v3.1 3/11/2013 page 1 of 11 parallax serial lcd 2 rows x 16 characters, non-back lit, with piezospeaker (#27976) 2 rows x 16 characters, back lit, with piezospeaker (#27977) 4 rows x 20 characters, back lit, with piezospeaker (#27979) the parallax serial lcds are very functional, low-cost liquid crystal displays that can be easily interfaced to and controlled by a microcontroller using a i/o pin. the lcd displays provide basic text wrapping so that your text looks correct on the display. full contro l over all of their advanced lcd features allows you to move the cursor anywhere on the display with a single instruction and turn the display on and off in any configuration. they support visible ascii characte rs dec 32-127, and in addition you may define up to eight of your own custom characters to display anywhere on the lcd. note: if your serial lcd display does not have a speaker on the back, use the specifications and information in the product change notice: revision e and earlier section on page 11. features ? clear 40-pixel characters (8 h x 5 w) ? supports ascii dec characters 32-127 ? define up to eight custom characters ? automatic text wrapping ? single command cursor placement ? single command clears the display ? define up to eight custom characters ? select 2400, 9600, or 19,200 baud with switches on the back of the device ? display type: stn, yg, positive transflective lcd ? adjustable contrast knob on the back of the device ? yg led for backlit model displays key specifications ? power requirements: o non-backlit: +5 vdc, 20 ma o backlit: +5 vdc, 20 ma (light o ff), ~ 80 ma typical (light on) ? communication: selectable asynchronous serial baud rates: 2400, 9600, 19200 ? operating temperature: -4 to +158 f (-20 to +70c) ? dimensions: note - board and lcd size and style may vary o 2x16: approx. 1.42 x 3.15 in (36 x 80 mm) o 4x20: approx. 2.37 x 3.86 in (60.2 x 98.1 mm)
copyright ? parallax inc. parallax serial lcds (#27976, 27977, 27979) v3.1 3/11/2013 page 2 of 11 quick-start circuit the serial lcds should be powered from an extern al regulated 5 v power supply. make sure the power supply has an adequate current rating to power the serial lcd and the basic stamp, propeller chip, or whichever microcontroller and other devices you are using. caution do not provide a signal to the 'rx' pin before applying 5 vdc to the '5v' pin. baud rate setup after connecting the serial lcd, you will need to sele ct the baud rate at which you are going to send it data. you have three choices: 2400, 9600, and 19,200 ba ud. to set the baud rate, move the dip switches on the back of the lcd into the correct positions accord ing to the table next to the switches, which is also repeated below: mode sw1 sw2 test off off 2,400 on off 9,600 off on 19,200 on on as you can see from the table, there is also a fourth choice called test. use this test mode to confirm that the power and ground to the lcd are hooked up correctly before you send it any data. move the dip switches to the test setting and turn on the power. the lcd display should turn on with the backlight on (models 27977, 27979) and display the following text: parallax, inc. www.parallax.com if you don?t see the text at first, try adjusting th e lcd contrast by turning the pot labeled ?increase contrast? with a screwdriver. turn it in the directio n of the arrow to make the characters show up more clearly. if you still don?t see the characters, go back and check your electrical connections and try again. once you?ve successfully completed test mode, move th e dip switches to the correct positions to select the baud rate you want to use for your application.
copyright ? parallax inc. parallax serial lcds (#27976, 27977, 27979) v3.1 3/11/2013 page 3 of 11 displaying text now that the lcd is set up, it?s time to start sending text to the display. to display a character of text on the serial lcd, simply send the ascii code of that char acter to the serial lcd over the serial port at the correct baud rate. when a character is received, the serial lcd displays that character at the current cursor position and then moves the cursor one position to the right. when you first turn on the lcd, the cursor is in the leftmost position on the top line, as you might ex pect. the short bar on the bottom of the character shows where the cursor is positioned currently. once you?ve sent a full line characters to the lcd, you will notice that the cursor automatically wraps around to the leftmost position of the second line, ju st like the text in a book. the text will wrap like this at the end of every line, with the end of the bottom line wrapping back around to the top line of the lcd. the text will never ?run off? the display; you? ll always see all of the characters you send. example code is provided below. you may downlo ad the example code files from the 27976, 27977, or 27979 product pages at www.parallax.com; just enter an y of these product numbers in the ?search? field on the home page basic stamp ? 2 example code you may download the example code from the 27976, 27977, or 27979 product pages at www.parallax.com; just enter any of these product numb ers in the ?search? field on the home page. try the following code on your basic stamp 2 to send a te xt string to the lcd display. first, set the baud rate on your serial lcd to 19,200. then, load th e code below into your basic stamp 2 and run it. you will see the text string show up and wrap to the second line of the display. in all of your serial lcd code, you should pause for 1 00 ms at start-up to give time for the serial lcd to initialize. you should also set the serial port pin on the basic stamp to high before the 100 ms start-up delay, as this is the normal state of a se rial port when it isn?t sending any data. ' {$stamp bs2} ' {$pbasic 2.5} txpin con 0 baud19200 con 32 high txpin ' set pin high to be a serial port pause 100 ' pause for serial lcd to initialize serout txpin, baud19200, ["hello, this text will wrap."] propeller p8x32a example code try the following code on your propeller to send a text string to the lcd display. first, set the baud rate on your serial lcd to 19,200. then, load the code below into your propeller and load ram or eeprom. you will see the text string show up and wrap to the second line of the display. in all of your serial lcd code, you should wait for 100 ms after starting the fullduplexserial.spin object, to give the object and the serial lcd time to initializ e. the fullduplexserial.spin object is included with the propeller tool.
copyright ? parallax inc. parallax serial lcds (#27976, 27977, 27979) v3.1 3/11/2013 page 4 of 11 {{ serial_lcd_demo.spin for parallax serial lcds 27976, 27977, 27979 }} con _clkmode = xtal1 + pll16x _xinfreq = 5_000_000 tx_pin = 0 baud = 19_200 obj lcd : "fullduplexserial.spin" pub main lcd.start(tx_pin, tx_pin, %1000, 19_200) waitcnt(clkfreq / 100 + cnt) ' pause for fullduplexserial.spin to initialize lcd.str(string("hello, this text will wrap.")) moving the cursor when you send a character to the serial lcd, it alwa ys displays at the current cursor position. there are a few different ways to move the cursor on the serial lcd display. after each character you send, the cursor automatically moves over one position. along wi th this, there is a standard set of cursor move commands including backspace, carriage return, and line feed. the backspace/left command (dec 8) moves the cursor one place to the left and the right command (dec 9) moves the cursor one place to the right. th ese can be useful for moving the cursor around to overwrite existing text. these commands wrap to the next line of the display, if necessary. the line feed command (dec 10) moves the cursor to the next line of the display without changing the horizontal position of the cursor. the carriage return command (d ec 13) also moves the cursor to the next line, but it moves the cursor to the leftmost position on that line as well. the form feed command (dec 12) clears the entire display and moves the cursor to the leftmost position on line 0, just like when you first turn on the display. you will need to pause for 5ms in your code after sending the form feed command, to give the serial lcd time to clear the display. except fo r form feed, none of these move commands affects the characters on the display. there are also direct move commands that you can use to move the cursor to any position on the display with a single command. the commands in the range dec 128 to 143 and dec 148 to 163 move the cursor to the 16 different positions on each of the two lines of the model 27976 and 27977 lcds. the commands in the range dec 128 to 207 move the cursor to the 20 different positions on each of the four lines of the model 27979 lcd. controlling the display you also have control over the various display mode s of the serial lcd. the display-off command (dec 21) turns off the display so that all of the characte rs disappear. the characters aren?t erased from the display, though, and you can even keep writing new ch aracters to the display when it is turned off. a trick to make a lot of text show up all at once, even at a slow baud rate, is to turn off the display and then send all of your text . then, when you turn the display on agai n, all of the text appears instantly.
copyright ? parallax inc. parallax serial lcds (#27976, 27977, 27979) v3.1 3/11/2013 page 5 of 11 the display-on commands (dec 22 to 25) turn the disp lay back on and also control whether you want to display the cursor and/or make the cursor character blink. the cursor is the short bar that shows up below the character at the current cursor position. th e blink option makes that character blink on and off repeatedly. you can turn the cursor and blink options on or off, in any combination, as listed in the command set table. you can change the cursor and blink mode even if the display is already on; you don?t need to turn it off and then back on again. with models 27977 and 27979, you can also control the ba cklight of the display. the backlight lights up the display so that it is easier to see in the dark. there are commands to turn the backlight on (dec 17) and off (dec 18). custom characters the serial lcd has the capability to store up to eight user-defined custom characters. the custom characters are stored in ram and so they need to be redefined if you turn off the power. you can display the custom characters by sending the commands dec 0 to 7, as shown in the command set table. the custom character will display at the current cursor position. the custom characters are five pixels wide by eight pi xels high. each of the characters is stored as a series of eight data bytes where the low five bits of ea ch byte represent a row of pixels in the character. the high three bits of each byte ar e ignored. a bit value of one turns th at pixel on (i.e. makes it black). the bottom row of pixels is often left blank (all zeros) to make it easier to see the cursor. to define a custom character, you will send a total of 9 bytes to the serial lcd. the first byte needs to be a valid define-custom-character command (dec 248 to 255) and must be followed by eight data bytes that define the pixels of the character. the serial lc d will always use the next eight bytes it receives to set the pixels of the character. the data bytes define the character starting at the topmost row of pixels, as shown in the example code. basic stamp 2 custom character example define a custom character using the code example below. first, set the baud rate on your serial lcd to 19,200. then, load the code below into your basic st amp 2 and run it. you will see a diamond character appear on the screen. ' {$stamp bs2} ' {$pbasic 2.5} txpin con 0 baud19200 con 32 high txpin ' set pin high to be a serial port pause 100 ' pause for serial lcd to initialize serout txpin, baud19200, [250] ' define custom character 2 ' now send the eight data bytes serout txpin, baud19200, [%00000] ' %00000 = serout txpin, baud19200, [%00100] ' %00100 = * serout txpin, baud19200, [%01110] ' %01110 = * * * serout txpin, baud19200, [%11111] ' %11111 = * * * * * serout txpin, baud19200, [%01110] ' %01110 = * * * serout txpin, baud19200, [%00100] ' %00100 = * serout txpin, baud19200, [%00000] ' %00000 = serout txpin, baud19200, [%00000] ' %00000 = serout txpin, baud19200, [2] ' display the new custom character 2
copyright ? parallax inc. parallax serial lcds (#27976, 27977, 27979) v3.1 3/11/2013 page 6 of 11 propeller? p8x32a example code define a custom character using the code example below. first, set the baud rate on your serial lcd to 19,200. then, load the code below into your propeller and load ram or eeprom. you will see a diamond character appear on the screen. note: the fullduplexserial.spin object is included with the propeller tool software. {{ serial_lcd_custom_character.spin for parallax serial lcds 27976, 27977, 27979 }} con _clkmode = xtal1 + pll16x _xinfreq = 5_000_000 tx_pin = 0 baud = 19_200 obj lcd : "fullduplexserial.spin" pub main lcd.start(tx_pin, tx_pin, %1000, 19_200) waitcnt(clkfreq / 100 + cnt) ' pause for fullduplexserial.spin to initialize lcd.tx(250) ' define custom character 2 ' now send the eight data bytes lcd.tx(%00000) ' %00000 = lcd.tx(%00100) ' %00100 = * lcd.tx(%01110) ' %01110 = * * * lcd.tx(%11111) ' %11111 = * * * * * lcd.tx(%01110) ' %01110 = * * * lcd.tx(%00100) ' %00100 = * lcd.tx(%00000) ' %00000 = lcd.tx(%00000) ' %00000 = lcd.tx(2) ' display the new custom character 2 playing music the serial lcd has a built-in piezoelectric speaker which can play musical notes. the lcd includes a sophisticated music player enabling users to progra m songs and tunes. you can play musical notes by sending three types of note commands (dec 214 to 232), as shown in the command set table. set length the ?set length? commands (dec 208 to 214) determines the length of time each note will play for. this value remains the same until another ?set length? comma nd is received. a note?s length can range from a 1/64 th note to a whole note. a whole note is 2 seconds long.
copyright ? parallax inc. parallax serial lcds (#27976, 27977, 27979) v3.1 3/11/2013 page 7 of 11 set scale the ?set scale? commands (dec 215 to 219) determines the octave each note will play in. this value remains the same until another ?set scale? command is received. the current octave can be set to a value between 3 and 7, and each octave consists of 12 notes. the frequency for each note and scale combination is shown in the table below. scale a a# b c c# d d# e f f# g g# 3 220 233 247 262 277 294 311 330 349 370 392 415 4 440 466 494 523 554 587 622 659 698 740 784 831 5 880 932 988 1047 1109 1175 1245 1319 1397 1480 1568 1661 6 1760 1865 1976 2093 2217 2349 2489 2637 2794 2960 3136 3322 7 3520 3729 3951 4186 4435 4699 4978 5274 5588 5920 6272 6645 play note the ?play note? commands (dec 220 to 232) play a single note for the currently set time and in the currently set octave. command set the tables on the following pages list all of the valid serial lcd commands. commands marked as n/a are invalid and are ignored. the lines of the lcd disp lay are numbered starting from 0, with line 0 being the top line. the character positions on each line are numbered starting from 0, with position 0 being the leftmost position on the line. dec hex action 0 00 display custom character 0 1 01 display custom character 1 2 02 display custom character 2 3 03 display custom character 3 4 04 display custom character 4 5 05 display custom character 5 6 06 display custom character 6 7 07 display custom character 7 8 08 backspace / left - the cursor is moved one position to the left. the command doesn?t erase the character. 9 09 right - the cursor is moved one position to the right. the command doesn?t erase the character. 10 0a line feed - the cursor is moved down one line. for the two line lcd model, if on line 0 it goes to line 1. if on line 1, it wraps around to line 0. the horizontal position remains the same. dec hex action 11 0b n/a 12 0c form feed - the cursor is moved to position 0 on line 0 and the entire display is cleared. users must pause 5ms after this command. 13 0d carriage return ? for the two line lcd model, if on line 0 the cursor is moved to position 0 on line 1. if on line 1, it wraps around to position 0 on line 0. 14 - 16 0e - 10 n/a 17 11 turn backlight on (only on models 27977, 27979)
copyright ? parallax inc. parallax serial lcds (#27976, 27977, 27979) v3.1 3/11/2013 page 8 of 11 dec hex action 18 12 turn backlight off (default) 19 - 20 13 - 14 n/a 21 15 turn the display off 22 16 turn the display on, with cursor off and no blink 23 17 turn the display on, with cursor off and character blink 24 18 turn the display on, with cursor on and no blink (default) 25 19 turn the display on, with cursor on and character blink 26 - 31 1a - 1f n/a 32 - 127 20 - 7f display ascii characters. see the ascii character set table. 128 80 move cursor to line 0, position 0 129 81 move cursor to line 0, position 1 130 82 move cursor to line 0, position 2 131 83 move cursor to line 0, position 3 132 84 move cursor to line 0, position 4 133 85 move cursor to line 0, position 5 134 86 move cursor to line 0, position 6 135 87 move cursor to line 0, position 7 136 88 move cursor to line 0, position 8 137 89 move cursor to line 0, position 9 138 8a move cursor to line 0, position 10 139 8b move cursor to line 0, position 11 140 8c move cursor to line 0, position 12 141 8d move cursor to line 0, position 13 142 8e move cursor to line 0, position 14 143 8f move cursor to line 0, position 15 144 90 move cursor to line 0, position 16 (only on model 27979) 145 91 move cursor to line 0, position 17 (only on model 27979) 146 92 move cursor to line 0, position 18 (only on model 27979) 147 93 move cursor to line 0, position 19 (only on model 27979) 148 94 move cursor to line 1, position 0 149 95 move cursor to line 1, position 1 150 96 move cursor to line 1, position 2 151 97 move cursor to line 1, position 3 152 98 move cursor to line 1, position 4 153 99 move cursor to line 1, position 5 154 9a move cursor to line 1, position 6 155 9b move cursor to line 1, position 7 156 9c move cursor to line 1, position 8 dec hex action 157 9d move cursor to line 1, position 9 158 9e move cursor to line 1, position 10 159 9f move cursor to line 1, position 11 160 a0 move cursor to line 1, position 12 161 a1 move cursor to line 1, position 13 162 a2 move cursor to line 1, position 14 163 a3 move cursor to line 1, position 15
copyright ? parallax inc. parallax serial lcds (#27976, 27977, 27979) v3.1 3/11/2013 page 9 of 11 dec hex action 164 a4 move cursor to line 1, position 16 (only on model 27979) 165 a5 move cursor to line 1, position 17 (only on model 27979) 166 a6 move cursor to line 1, position 18 (only on model 27979) 167 a7 move cursor to line 1, position 19 (only on model 27979) 168 a8 move cursor to line 2, position 0 (only on model 27979) 169 a9 move cursor to line 2, position 1 (only on model 27979) 170 aa move cursor to line 2, position 2 (only on model 27979) 171 ab move cursor to line 2, position 3 (only on model 27979) 172 ac move cursor to line 2, position 4 (only on model 27979) 173 ad move cursor to line 2, position 5 (only on model 27979) 174 ae move cursor to line 2, position 6 (only on model 27979) 175 af move cursor to line 2, position 7 (only on model 27979) 176 b0 move cursor to line 2, position 8 (only on model 27979) 177 b1 move cursor to line 2, position 9 (only on model 27979) 178 b2 move cursor to line 2, position 10 (only on model 27979) 179 b3 move cursor to line 2, position 11 (only on model 27979) 180 b4 move cursor to line 2, position 12 (only on model 27979) 181 b5 move cursor to line 2, position 13 (only on model 27979) 182 b6 move cursor to line 2, position 14 (only on model 27979) 183 b7 move cursor to line 2, position 15 (only on model 27979) 184 b8 move cursor to line 2, position 16 (only on model 27979) 185 b9 move cursor to line 2, position 17 (only on model 27979) 186 ba move cursor to line 2, position 18 (only on model 27979) 187 bb move cursor to line 2, position 19 (only on model 27979) 188 bc move cursor to line 3, position 0 (only on model 27979) 189 bd move cursor to line 3, position 1 (only on model 27979) 190 be move cursor to line 3, position 2 (only on model 27979) 191 bf move cursor to line 3, position 3 (only on model 27979) 192 c0 move cursor to line 3, position 4 (only on model 27979) 193 c1 move cursor to line 3, position 5 (only on model 27979) 194 c2 move cursor to line 3, position 6 (only on model 27979) 195 c3 move cursor to line 3, position 7 (only on model 27979) 196 c4 move cursor to line 3, position 8 (only on model 27979) 197 c5 move cursor to line 3, position 9 (only on model 27979) 198 c6 move cursor to line 3, position 10 (only on model 27979) 199 c7 move cursor to line 3, position 11 (only on model 27979) 200 c8 move cursor to line 3, position 12 (only on model 27979) 201 c9 move cursor to line 3, position 13 (only on model 27979) 202 ca move cursor to line 3, position 14 (only on model 27979) dec hex action 203 cb move cursor to line 3, position 15 (only on model 27979) 204 cc move cursor to line 3, position 16 (only on model 27979) 205 cd move cursor to line 3, position 17 (only on model 27979) 206 ce move cursor to line 3, position 18 (only on model 27979) 207 cf move cursor to line 3, position 19 (only on model 27979) 208 d0 set note length to 1/64 note
copyright ? parallax inc. parallax serial lcds (#27976, 27977, 27979) v3.1 3/11/2013 page 10 of 11 dec hex action 209 d1 set note length to 1/32 note 210 d2 set note length to 1/16 note 211 d3 set note length to 1/8 note 212 d4 set note length to 1/4 note 213 d5 set note length to 1/2 note 214 d6 set note length to whole note (2 seconds) 215 d7 select the 3 rd scale (a = 220 hz) 216 d8 select the 4 th scale (a = 440 hz) 217 d9 select the 5 th scale (a = 880 hz) 218 da select the 6 th scale (a = 1760 hz) 219 db select the 7 th scale (a = 3520 hz) 220 dc play a note 221 dd play a# note 222 de play b 223 df play c 224 e0 play c# 225 e1 play d 226 e2 play d# 227 e3 play e 228 e4 play f 229 e5 play f# 230 e6 play g 231 e7 play g# 232 e8 pause for current note length (no sound) 233 - 247 e9 ? f7 n/a 248 f8 define custom character 0. this command must be followed by eight data bytes. 249 f9 define custom character 1. this command must be followed by eight data bytes. 250 fa define custom character 2. this command must be followed by eight data bytes. 251 fb define custom character 3. this command must be followed by eight data bytes. 252 fc define custom character 4. this command must be followed by eight data bytes. 253 fd define custom character 5. this command must be followed by eight data bytes. 254 fe define custom character 6. this command must be followed by eight data bytes. 255 ff define custom character 7. this command must be followed by eight data bytes.
copyright ? parallax inc. parallax serial lcds (#27976, 27977, 27979) v3.1 3/11/2013 page 11 of 11 product change notice: revision e and earlier if your serial lcd display does not have a piezos peaker on the back and looks similar to the image above, please use the following information and spec ifications when using this product. all connections, test code and commands remain the same, exce pt for commands controlling the piezospeaker. key specifications ? power requirements: o non-backlit: +5 vdc, 20 ma o backlit: +5 vdc, 20 ma (light off), 80 ma (light on) ? communication: selectable asynchronous serial baud rates: 2400, 9600, 19200 ? operating temperature: -4 to +158 f (-20 to +70c) ? dimensions: board and lcd size and style may vary o 2x16: approx. 1.5 x 3.15 in (38 x 80 mm) o 4x20: approx. 2.4 x 3.9 in (60 x 100 mm) rev e caution: do not provide a signal to the ?rx? pin before applying 5 vdc to the ?5v? pin. revision history version 3.1: corrected current draw specification on page 1 from 50 ma to 80 ma.


▲Up To Search▲   

 
Price & Availability of 805-00012

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X